<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/msg/";  //应用的地址名
String modifyActionName = basePath+"SysUserMsgDefine_setSelfMsgPage.action";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>系统消息定义表添加或编辑</title>
		<style>
		html,body {overflow-y:auto!important;*overflow-y:scroll;}
		</style>
<script type="text/javascript">
<!--
           $(function(){
               //初始化工作，因为远程载入该界面时无法通过在标签中进行设置相应的验证属性等信息，必须要在这里进行初始化
               $('#modifyBtn').linkbutton();
	           //点击添加按钮操作
			   $('#modifyBtn').click(function(){
                  $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=modifyActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data,null,'操作成功，重登录后生效！');
			        }
				});
	            
           });
//-->
</script>
  </head>
  
  <body>
    <s:form action="editForm" method="post">
	<table align="center" width="100%"  class="tb_add_th">
	<tr><td colspan="2"><font color="#FFA500">消息弹出项设置</font></td></tr>
	<s:iterator value="%{#request.msgList}" status="st">
	<s:set name="isChoose" scope="request" value="chooseId"></s:set>
    <tr><th width="180"><s:if test="nflag==1">公共消息</s:if><s:else>个人消息</s:else>:</th><td><INPUT TYPE="checkbox" name="msgId" id="msgId" value="<s:property value="vcId"/>" <s:if test="chooseId!=null">checked="checked"</s:if>/><s:property value="vcName"/></td></tr>
    </s:iterator>
    <tr><td colspan="2"><font color="#FFA500">消息弹出间隔时间设置</font></td></tr>
    <tr><th>消息提示间隔时间:</th><td>每隔 <s:select list="#{'5':'五分钟','10':'十分钟','15':'十五分钟'}" id="interval" name="interval"></s:select>提示一次</td></tr>
	</table>    
   </s:form>
<div width="100%" align="right"><a id="modifyBtn" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-save">保存</a></div>
  </body>
</html>

